package com.freesky.web.portal.reomte;

import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.web.portal.reomte.fallback.HomePanelContentRemoteFallback;
import com.freesky.web.portal.reomte.fallback.HomePanelRemoteFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "emall-provider-zuul", fallback = HomePanelRemoteFallback.class)
public interface HomePanelRemote {
    String ZUUL_URL_PREFIX = "/mysevice/content";

    @GetMapping(value = ZUUL_URL_PREFIX + "/home/panel/portal/recommend")
    JSONResponse getRecommendPanel();

    @GetMapping(value = ZUUL_URL_PREFIX + "/home/panel/portal/thanks")
     JSONResponse getThanksPanel();
}
